#include <iostream>
#include "Queue.h"
using namespace std;

int main(int argc, char** argv) 
{
	Queue<int> intQueue;
	cout << "processing an integer queue" << endl;
	for(int i=0; i<4; i++)
	{
		intQueue.enqueue(i);
		intQueue.printQueue();	
	}
	int dequeueInteger;
	while(!intQueue.isQueueEmpty())
	{
		intQueue.dequeue(dequeueInteger);
		cout << dequeueInteger << "dequeued" << endl;
		intQueue.printQueue();
	}
	
	Queue<double> doubleQueue;
	double value = 1.1;

	cout << "processing a double queue" << endl;
	for(int j=0; j<4; j++)
	{
		doubleQueue.enqueue(value);
		doubleQueue.printQueue();
		value += 1.1;
	}
	double dequeueDouble;
	while(!doubleQueue.isQueueEmpty())
	{
		doubleQueue.dequeue(dequeueDouble);
		cout << dequeueDouble << "dequeue" << endl;
		doubleQueue.printQueue();
	}
	return 0;
}
